package com.abss.vote.mapper;

import com.abss.vote.model.Administrators;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface AdministratorsMapper {

    int getLevel(Integer id);

    Administrators login(Administrators administrators);

    Administrators getAdminById(int ID);

    int updateAdmin(Administrators administrators);

    int addAdmin(Administrators administrators);

    int deleteAdmin(String ADMIN_ACCOUNT);

    List<Administrators> getAdmin(@Param("id") int id);

    List<Administrators> getAllAdmin(@Param("id") int id);

    Administrators checkDistrict(Administrators administrators);

    int checkUserName(Administrators administrators);

    int setLastActivityId(@Param("ADMIN_ACCOUNT") String ADMIN_ACCOUNT,@Param("ACTIVITY_ID") int ACTIVITY_ID);

    Administrators getlogin(String ADMIN_ACCOUNT);

    Administrators checkDistrict2(Administrators administrators);

    int deleteAdminBydisId(Integer id);

    Administrators getAdminId(String admin_account);

    Administrators getAllAdminByDisid(Integer id);

    Administrators getAdminByAccount(String admin_account);
}
